<template>
  <h1>首页</h1>
  <div>
    <a href="https://vite.dev" target="_blank">
      <img src="/vite.svg" class="logo" alt="Vite logo" />
    </a>
    <a href="https://vuejs.org/" target="_blank">
      <img src="@/assets/vue.svg" class="logo vue" alt="Vue logo" />
    </a>
  </div>
  <renderOptionAPI msg="hello option api render" />
  <renderCompositionAPI msg="hello composition api render" />
  <el-date-picker v-model="value1" type="date" placeholder="选择日期" />
</template>

<script setup>
import renderOptionAPI from './renderOptionAPI.jsx'
import renderCompositionAPI from './renderCompositionAPI.jsx'
import { ref } from 'vue'
defineOptions({
  name: 'homeIndex'
})
const value1 = ref('')
</script>

<style lang="scss" scoped>
h1 {
  color: variables.$color;
}
.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.vue:hover {
  filter: drop-shadow(0 0 2em #42b883aa);
}
</style>
